#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QtDBus>
#include <QDBusConnection>
#include <QDBusObjectPath>
#include <QMessageBox>
#include <QDBusMessage>
#include <QFile>
#include <QFileInfo>
#include <QThread>
#include "luokka.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
public:

    QSettings settings;
    QString volumePoint;
    explicit MainWindow(QWidget *parent = 0);
    bool paiva1;
    bool paiva2;
    ~MainWindow();
private slots:
    QString deviceAdded(QDBusObjectPath dev);

    void on_pushButton_clicked();
    void progressChanged(int max, int value, bool ok);
    void progressChanged2(int max, int value, bool ok);
    void progressChanged3(int max, int value, bool ok);
    void progressChanged4(int max, int value, bool ok);
    void progressChanged5(int max, int value, bool ok);
    void progressChanged6(int max, int value, bool ok);
    void on_actionExit_triggered();
    void paivat();
    void on_actionAbout_triggered();

private:
    Ui::MainWindow *ui;
};

class SleepThread : public QThread{
    Q_OBJECT
    void run(){}
public :
    static void sleep(long iSleepTime){
        QThread::sleep(iSleepTime);
    }
};
#endif // MAINWINDOW_H
